﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Parameter.aspx.cs" Inherits="WebUI.SystemManage.Parameter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
<ext:PageManager ID="PageManager1" runat="server" />
<ext:Toolbar ID="Toolbar1" runat="server" >
    <Items>
    <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add"  ></ext:Button>
    </Items>
    </ext:Toolbar>
    <ext:Form runat="server" ID="Form2" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px" ShowBorder="false" >
    <Rows>
    <ext:FormRow>
    <Items>
    <ext:DropDownList runat="server" ID="dl_parameterIndex"  Label="属性类别" 
            Width="200px"  TabIndex="1" OnSelectedIndexChanged="dl_Selected" AutoPostBack="true">
    </ext:DropDownList>
    </Items>
    </ext:FormRow>
    </Rows>
    </ext:Form>
    <ext:Grid ID="Grid1" runat="server" EnableBackgroundColor="true" Title="属性值列表" IsDatabasePaging="true" EnableRowNumber="true" AutoHeight="true" AutoWidth="true">
    <Columns>
    <ext:BoundField  DataField="value" HeaderText="属性值" />
    <ext:BoundField  DataField="Pindexvalue.value" HeaderText="属性类别" />
    <ext:WindowField ColumnID="myWindowField" WindowID="win_Content" HeaderText="编辑"
                Icon="TableEdit" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="id"
                DataIFrameUrlFormatString="ParameterEdit.aspx?action=edit&id={0}" DataWindowTitleField="value"
                DataWindowTitleFormatString="编辑 - {0}" />
    <ext:TemplateField HeaderText="删除">
                <ItemTemplate>
                    <a href="<%# GetDelUrl(DataBinder.Eval(Container.DataItem, "id")) %>">删除</a>
                </ItemTemplate>
            </ext:TemplateField>
    </Columns>
    </ext:Grid>
    <br />
    <ext:Label ID="labResult" EncodeText="false" runat="server">
    </ext:Label>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true"  EnableConfirmOnClose="true" Title="编辑属性" IFrameUrl="about:blank" Target="Top" IsModal="true" Width="600px" Height="300px" EnableMaximize="false"></ext:Window>
    </form>
</body>
</html>
